export enum ModuleType {
	SYSTEM = 0, // 系统Logo
	SYSTEM_SOFTWARE_UPGRADE = 1, // 系统软件升级
	SYSTEM_HARDWARE_UPGRADE = 2, // 系统硬件升级
	AI_UNIFORM = 3, // AI工服库接口
	AI_FACE = 4, // AI人脸接口
	AI_SDK = 7 // AI服务接口
}
export interface FileList {
	id?: number;
	personName?: string;
	status?: 'done' | 'loading' | 'error' | 'removed';
	imageUrl?: string;
	originalUrl?: string;
	disabled?: boolean;
}
export interface UploadImageProps {
	value?: FileList[];
	showAdd?: boolean;
	showName?: boolean;
	placeholder?: string;
	showUpdateIcon?: boolean;
	showDeleteIcon?: boolean;
	disabledUpdateUpload?: boolean;
	disabledDelete?: boolean;
	size?: 'small' | 'middle' | 'large';
	activeIndex?: number;
	count?: number;
	maxFileSize?: number;
	accept?: string;
	dpi?: [number, number] | [[number, number], [number, number]];
	// eslint-disable-next-line no-use-before-define
	moduleType?: ModuleType;
	showCheckbox?: boolean;
	checkedList?: number[];
	boxSerial?: string | null;
	readonly?: boolean;
	closePreview?: boolean;
	// 鼠标移入显示checkbox
	showCheckboxHover?: boolean;
	// 文件上传前的钩子，参数为上传的文件
	beforeUpload?: (file: File) => boolean;
	beforeAddFileList?: (file: FileList) => FileList;
}
